// components/GoodsList/GoodsList.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    hotData: {
      type: Array,
    },
    isNameEmpty: {
      type: String
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  options: {
    styleIsolation: "isolated"
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toDetail(e) {
      let pid = e.currentTarget.dataset.pid
      wx.navigateTo({
        url: '/pages/detail/detail?pid=' + pid,
      })
    }
  }
})